package com.xiaoke.service;

import com.xiaoke.entity.Admin;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/admin")
public interface AdminService {
    @GetMapping("/selectByPrimaryKey")
    Admin selectByPrimaryKey(@RequestParam("id") String id);

    @PostMapping("/insert")
    void insert(@RequestBody Admin record);

    @PostMapping("/update")
    void update(@RequestBody Admin record);

    @GetMapping("/delete")
    void delete(@RequestParam("id") String id);

    @PostMapping("/findByParams")
    List<Admin> findByParams(@RequestBody Map<String, Object> params);

}
